set x to item 1 of cdrdmg
set y to text returned of (display dialog "Desired Name:" default answer "")
set x to POSIX path of x
set a to "hdiutil makehybrid -iso -joliet -ov -o '"
set a to a & ((POSIX path of (path to desktop)) as string)
set a to a & y & ".iso' "
set a to a & x
do shell script a